import request from "@/utils/request";

export const getStockMes = (stockMes) => {
    return request({
        url: '/stock/getOneFiveDataWithStockSymbol',
        method: 'get',
        params: stockMes
    })
}

//获取所有股票名字
export const getStockSymbols=()=>{
    return request.get('/stock/getStockSymbol')
}

export const getStockNumAndSymbols=()=>{
    return request.get('/stock/getStockNumAndSymbol')
}

export const searchStockSymbol = (searchString) => {
    return request.get('/userStock/searchSymbol', {
        params: {
            searchString: searchString
        }
    })
}


// export const createStockMes = (lastPrice) => {
//     return request.post('/stock/createStockData', {
//         params: {
//             stockName: stockMes.stockName,
//             key: stockMes.key
//         }
//     });
// };
